<template>
  <el-config-provider :size="'small'">
    <RouterView />
  </el-config-provider>
</template>

<script setup lang="ts">
import router from "@/router";
import { watch } from 'vue'
import { ElConfigProvider } from 'element-plus'

watch(() => router.currentRoute.value, (val) => {
  if (val.path === '/') {
    router.push("/home");
  }
}, { immediate: true, deep: true })

</script>


<style lang="scss">
//
</style>
